package com.example.qt.ptplatform.service;

import com.example.qt.ptplatform.entity.Comments;

import java.util.List;

public interface CommentService {
    Integer saveComment(Integer torrentId, Integer userId, String content, Boolean isAnonymous);
    Integer saveReply(Integer torrentId, Integer userId, String content, Boolean isAnonymous, Integer comCommentId);
    void likeComment(Integer userId, Integer commentId);
    void unlikeComment(Integer userId, Integer commentId);
    boolean checkLikeStatus(Integer userId, Integer commentId);
    void deleteComment(Integer commentId);
    List<Comments> getCommentsByTorrentId(Integer torrentId);
}